package p.ithorns.sample.tracer.otel;

import ch.qos.logback.contrib.json.JsonFormatter;
import p.ithorns.framework.common.utils.JsonUtil;

import java.util.Map;

/**
 * JacksonJsonFormatter
 *
 * @author HtL
 * @date 2025/3/20 9:33
 * @since 1.0.0
 */
public class JacksonJsonFormatter implements JsonFormatter {

    @Override
    public String toJsonString(Map m) throws Exception {
        return JsonUtil.toJson(m);
    }

}